package com.ml.mall.bean.req.sys;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * Created by kyyang on 2021/1/10 19:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserEditPwdDto {

    @NotBlank(message = "旧密码不能为空！")
    private String  oldpwd;

    @NotBlank(message = "新密码不能为空！")
    @Length(min = 6, message = "密码长度至少为6位")
    private String  newpwd;

}
